package com.weilus.refresh;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.net.URI;

/**
 * @program springCloud-k8s
 * @date 2019-06-26 17:08
 **/
@Configuration
@RefreshScope
public class CilentsConfig {

    @Value("${test.name:马云}")
    private String name;

    @Value("${clients.say-hello: }")
    private URI sayHello;

    @Value("${clients.hi-man: }")
    private URI hiMan;

    @Value("${clients.check-token: }")
    private URI checkToken;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public URI getSayHello() {
        return sayHello;
    }

    public void setSayHello(URI sayHello) {
        this.sayHello = sayHello;
    }

    public URI getHiMan() {
        return hiMan;
    }

    public void setHiMan(URI hiMan) {
        this.hiMan = hiMan;
    }

    public URI getCheckToken() {
        return checkToken;
    }

    public void setCheckToken(URI checkToken) {
        this.checkToken = checkToken;
    }
}
